<a href="<?php echo $this->action('add', $this->modelList); ?>">Add New</a>

<?php 
    $grid = $this->grid($this->modelList);
    $grid->addHeader();
    $grid->startBody();
    
    foreach ($this->modelList as $model) {
        ?>
        <td pipes:for="url">
            <a href="<?php echo $model->url; ?>"><?php echo $model->title; ?> :: <em><?php echo $model->url; ?></em></a>
        </td>
        <td pipes:for="tags">
            <?php 
            foreach ($model->tags as $tag) {
                echo $tag->name . ' ';
            }
            ?>
        </td>
        <?php
        $grid->addRow($model);
    }
    
    echo $grid->generate();
    
?>
